Add some docs to GtkBuiltinIcon
authorMatthias Clasen <mclasen@redhat.com>
Tue, 22 Dec 2015 19:09:36 +0000 (14:09 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 22 Dec 2015 20:03:15 +0000 (15:03 -0500)
gtk/gtkbuiltinicon.c

index a6974e6e1389b1fab465b4a282cf0b5626b60563..1abf04d4665936241fb125c5416841e148cb41a4 100644 (file)
 #include "gtkcssnumbervalueprivate.h"
 #include "gtkrendericonprivate.h"
 
+/* GtkBuiltinIcon is a gadget implementation that is meant to replace
+ * all calls to gtk_render_ functions to render arrows, expanders, checks
+ * radios, handles, separators, etc. See the GtkCssImageBuiltinType
+ * enumeration for the full set of builtin icons that this gadget can
+ * render.
+ *
+ * Use gtk_builtin_icon_set_image to set which of the builtin icons
+ * is rendered.
+ *
+ * Use gtk_builtin_icon_set_default_size to set a non-zero default
+ * size for the icon. If you need to support a legacy size style property,
+ * use gtk_builtin_icon_set_default_size_property.
+ *
+ * Themes can override the acutal image that is used with the
+ * -gtk-icon-source property. If it is not specified, a builtin
+ * fallback is used.
+ */
+
 typedef struct _GtkBuiltinIconPrivate GtkBuiltinIconPrivate;
 struct _GtkBuiltinIconPrivate {
   GtkCssImageBuiltinType        image_type;